<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="/struts-tags" prefix="s"%>


<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html>
<html lang="zh-cn">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport"
			content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
		<meta name="renderer" content="webkit">
		<title>后台管理</title>

		<script type="text/javascript">
			$(function(){
				$("#team").addClass("active");
				$("#team").find("ul li").eq(3).addClass("active");
				})
		</script>
	</head>

	<body>

	  <s:if test="msg=='fail'">
	   <script>
	   alert("操作失败，请稍后再试！");
       </script>
      </s:if>
      
		<div class="admin">
			<form id="form"  method="post" action="team!deletebyid.action">
				<div class="panel admin-panel">
					<div class="panel-head">
						<strong>分销商列表</strong>
					</div>

					<table class="table table-hover">
						<tr>
							<th width="100">
								选择
							</th>
							<th width="200">
								日期
							</th>
							<th width="200">
								金额
							</th>
							<th width="150">
								代理ID
							</th>
							<th width="150">
								状态
							</th>
						</tr>

						<c:forEach var="tixian" items="${tixians}">

							<tr>
								<td>
									<input type="checkbox" class="choose" name="id"
										value="${tixian.id}" />
								</td>
								<td>
									${tixian.time}
								</td>
								<td>
									${tixian.money}
								</td>
								<td>
									${tixian.sid}
								</td>
								<td>
									${tixian.status}
								</td>

							</tr>
						</c:forEach>
					</table>
					</div>
			</form>
	
			<div class="panel-foot text-center">

				<ul class="pagination">
					<li>
						<s:if test="page==1">
							<a href="#" onclick="return false;">上一页</a>
						</s:if>
						<s:else>
							<a href="tixian!findall2.action?page=${page-1}">上一页</a>
						</s:else>
					</li>
				</ul>

				<ul class="pagination pagination-group">
					<s:iterator begin="1" end="allpage" var="i">
						<s:if test="#i==page">

							<li class="active">
								<a href="tixian!findall2.action?page=<s:property value="#i"/>"><s:property
										value="#i" />
								</a>
							</li>
						</s:if>
						<s:else>

							<li>
								<a href="tixian!findall2.action?page=<s:property value="#i"/>"><s:property
										value="#i" />
								</a>
							</li>
						</s:else>
					</s:iterator>
				</ul>


				<ul class="pagination">
					<li>
						<s:if test="page==allpage">
							<a href="#"  onclick="return false;">下一页</a>
						</s:if>
						<s:else>
							<a href="tixian!findall2.action?page=${page+1}">下一页</a>
						</s:else>
					</li>
				</ul>

			</div>
		</div>

		<br />



		<script type="text/javascript">
	function submit() {
		var choose = document.getElementsByClassName("choose");
		if ($('#selectall').is(':checked')) {
			choose[i].checked = true;
		} else {
			choose[i].checked = false;
		}
		document.getElementBy("form").submit();
	}
</script>

	</body>
</html>